package com.wwj.auction.sms.client;

import com.wwj.auction.sms.client.follback.CoreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用service-login服务接口
 */
@FeignClient(value = "service-login", fallback = CoreUserInfoClientFallback.class)
public interface UserInfoClient {

    /**
     * 校验手机号是否已经被注册
     * @param phone
     * @return
     */
    @GetMapping("/login/userInfo/checkPhone/{phone}")
    boolean isRegistered(@PathVariable String phone);
}
